import Vue from 'vue'
import Router from "vue-router";
Vue.use(Router)
const router = new Router({
  routes: [
    {
      path: '/',
      name: 'welcome',
      redirect: '/default',
    },
    {
      path: "/index",
      name: "index",
      component: () => import('../views/ZhangZiNav.vue'),
      redirect: '/zhzf',
      children: [
        {
          path: "/zhfx",
          name: "zhfx",
          component: () => import("../views/ZhangZi/analysis/index.vue"),
          meta: {
            title: '综合运行分析',
            renovate: true,
          }
        },
        {
          path: "/zhyx",
          name: "zhyx",
          component: () => import("../views/ZhangZi/Comprehensive/Index.vue"),
          meta: {
            title: '专题运行分析',
            renovate: true,
          }
        },
        {
          path: "/zhzf",
          name: "zhzf",
          component: () => import("../views/ZhangZi/ZongHeZhiFa/Index.vue"),
          meta: {
            title: '综合执法分析',
            renovate: true,
          }
        },
        {
          path: "/zhsr",
          name: "zhsr",
          component: () => import("../views/ZhangZi/shirunhuanwei/index.vue"),
          meta: {
            title: '市容环卫专题',
            renovate: true,
          }
        },
        {
          path: "/zfzt",
          name: "zfzt",
          component: () => import("../views/ZhangZi/ZhiFaZhuanTi/Index.vue"),
          meta: {
            title: '综合执法专题',
            renovate: true,
          }
        },
        {
          path: "/zfsz",
          name: "zfsz",
          component: () => import("../views/ZhangZi/Regulation/index.vue"),
          meta: {
            title: '市镇监管专题',
            renovate: true,
          }
        },
        {
          path: "/default",
          name: "default",
          component: () => import("../views/ZhangZi/ZongHeZhiFa/Index.vue"),
          meta: {
            title: '综合执法分析',
            renovate: true,
          }
        },
        {
          path: "/analysis",
          name: "analysis",
          component: () => import("../views/ZhangZi/ZhangziAnalysis/Index.vue"),
          meta: {
            title: '智能化应用分析',
            renovate: true,
          }
        },
        {
          path: "/znfiyp",
          name: "znfiyp",
          component: () => import("../views/ZhangZi/FenXiYanPan/Index.vue"),
          meta: {
            title: '智能分析研判',
            renovate: true,
          }
        },
        {
          path: "/citizenServices",
          name: 'citizenServices',
          component: () => import("../views/ZhangZi/citizenServices/Index.vue"),
          meta: {
            title: '市民服务专题',
            renovate: true,
          }
        },
        {
          path: "/dyjxh",
          name: "dyjxh",
          component: () => import("../views/ZhangZi/DuiWuJingXiHua/Index.vue"),
          meta: {
            title: '队伍精细化管理',
            renovate: true,
          }
        },
        {
          path: "/zhzfyxzs",
          name: "zhzfyxzs",
          component: () => import("../views/ZhangZi/YunXingZhiShu/Index.vue"),
          meta: {
            title: '综合执法运行指数',
            renovate: true,
          }
        },
        {
          path: "/fxjkyj",
          name: "fxjkyj",
          component: () => import("../views/ZhangZi/FengXianJianKong/index.vue"),
          meta: {
            title: '风险监控预警',
            renovate: true,
          }
        },
      ]
    },
  ]
});

export default router